<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$title?></title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #1D3647;
	font-family:Arial, Helvetica, sans-serif;
}
-->
</style>
<link href="<?=__THEMES__?>css/login.css" type="text/css" rel="stylesheet" />
<script src="<?=__THEMES__?>js/jquery-1.4.4.min.js" type="text/javascript"></script>
</head>
<body>
<!--top start-->
<div id="login-top"></div>
<!--top end main start-->
<div id="login-main">
	<div class="left-main">
    </div>
    <div class="right-main">
        <form action="" method="post" id="bagu_login">
            <div class="login-box">
            	<h4>巴古服饰OA系统后台登陆</h4>
                <div class="login-user">
                    <span>登陆名称:</span> 
                    <input type="text" name="username" value="<?php echo set_value('username')?>" id="username" />
                    <span><?php echo form_error('username'); ?></span>
                </div>
                <div class="login-user">
                    <span>登陆密码:</span> 
                    <input type="password" name="password" value="" id="password" />
                    <span><?php echo form_error('password'); ?></span>
                </div>
            </div>
        <div class="login-submit"><input type="submit" name="submit" value="登陆" /></div>
        </form>
    </div>
</div>
<!--main end footer start-->
<div id="login-footer">
	<span>Copyright © 2011-2011 广州市巴古服饰有限公司</span>
</div>

</body>
</html>
<script type="text/javascript">
	$('#bagu_login').submit(function(){
		var name = $('#username').val();
		if(name=="")
		{
			alert('登陆名不能为空!');
			return false;
		}
		else if(name.length<5)
		{
			alert('登陆名不能少于5位!');
			return false;
		}
		var password = $("#password").val();
		if(password=="")
		{
			alert('登陆密码不能为空!');
			return false;
		}
		else if(password.length<5)
		{
			alert('登陆密码不能少于5位!');
			return false;
		}
	});
</script>

